<?php
 class User extends AppModel{

	public $actsAs = array('Containable');

 	public $name = "User";
 	public $primaryKey = 'id';
	
 	public $validate = array(
 		'user_name' => array(
			'notempty' => array(
				'rule' => 'notempty',
				'last' => true
			),
            'unique' => array(//Bao loi trung name
                'rule' => 'isUnique',
                'last' => true
            )
       ),
       'password' => array(
			'notempty' => array(
				'rule' => 'notempty',
				'last' => true
			),
            
       )
 	);

 }